<template>
	<view class="search-product-list-component">
		<view class="search-list">
			<view
				v-for="(item, index) in list"
				:key="item.productId"
				class="search-item"
				@click="$emit('product', item)"
			>
				<text class="product-name">{{ item.productName }}</text>
				<text class="product-price">最高：¥{{ item.productMaxPrice / 100 || 0 }}</text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	props: {
		list: Array
	}
}
</script>

<style lang="scss" scoped>
@import './index.scss';
</style>